Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODExtension


InitExtension

The InitExtension method initializes this extension object.

void InitExtension (in ODObject base);
base
A reference to this extension's base object.
DISCUSSION
This method is not called directly to initialize this extension object, but is called by a subclass-specific initialization method. By convention, every subclass of ODExtension should have a separate initialization method (for example, the InitMyExtension method) that is called when an instance of that subclass is created. The override method may have additional parameters beyond those of the InitExtension method. The InitMyExtension method should call the inherited InitExtension method at the beginning of its implementation.

If you subclass ODExtension, your subclass-specific initialization method, rather than its somInit method, should handle any initialization code that can potentially fail. For example, your initialization method may attempt to allocate memory for your extension.

OVERRIDING
If you subclass ODExtension, you should not override this method.

SEE ALSO
"Implementing Extensions" on page 445 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help